package com.alibaba.alipay.api.user.model;

import java.io.Serializable;

import javax.validation.constraints.Max;

import org.hibernate.validator.constraints.NotEmpty;

public class UserDto implements Serializable {
	@NotEmpty(message="用户名不能为空")
	private String username;
	@NotEmpty(message="密码不能为空")
	private String password;
	@Max(value=200, message="不能超过200岁")
	private int age;
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	

}
